package com.slj.springcloud.controller;

import com.slj.springcloud.client.GatewayClient;
import com.slj.springcloud.model.response.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order/gateway")
public class OrderGatewayController {
    @Autowired
    private GatewayClient gatewayClient;

    @GetMapping("/port")
    public Result<String> getPayPort() {
        return gatewayClient.getPort();
    }
}
